﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Induction.FinalTest.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style id="Style1" runat="server" type="text/css">
        body {
	        font: 11px Verdana;
	        padding: 0px;
	        margin-left: 10px;
        }
    </style>
</head>
<body bgcolor="#cccccc">
    <form id="form1" runat="server">
    <div>
    <p><asp:Label ID="Label1" runat="server" Font-Size="Larger" ForeColor="#6600FF" 
                    Text="CUSTOMER DETAIL" Font-Bold="True"></asp:Label></p>       
    <hr />
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    <table>    
        <tr>
            <td><asp:Label ID="CustomerNumberLabel" runat="server" Text="Customer Number"></asp:Label></td>
            <td><asp:TextBox ID="CustomerNumberText" runat="server" BackColor="#CC99FF"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="Customer Number Must be Entered" 
                    ControlToValidate="CustomerNumberText">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="CustomerNameLabel" runat="server" Text="Customer Name"></asp:Label></td>
            <td><asp:TextBox ID="CustomerNameText" runat="server" BackColor="#CC99FF"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ErrorMessage="Customer Name Must be Entered" 
                    ControlToValidate="CustomerNameText">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label></td>
            <td><asp:DropDownList ID="ListOfStatus" runat="server" BackColor="#CC99FF">
            <asp:ListItem>Please Select ...</asp:ListItem>
            <asp:ListItem Value="1">Active</asp:ListItem>
                <asp:ListItem Value="0">Non Active</asp:ListItem>
        </asp:DropDownList></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ErrorMessage="Please Select Status" InitialValue="Please Select ..." 
                    ControlToValidate="ListOfStatus">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="DefaultCurrLabel" runat="server" Text="Default Currency"></asp:Label></td>
            <td><asp:DropDownList ID="ListOfCurrency" runat="server" BackColor="#CC99FF">
                <asp:ListItem>Please Select ...</asp:ListItem>
        </asp:DropDownList></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ErrorMessage="Please Select Default Currency" 
                    InitialValue="Please Select ..." ControlToValidate="ListOfCurrency">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="Address1Label" runat="server" Text="Address Line 1"></asp:Label></td>
            <td><asp:TextBox ID="Address1Text" runat="server" BackColor="#CC99FF"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ErrorMessage="Address Line 1 Must be Entered" 
                    ControlToValidate="Address1Text">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="Address2Label" runat="server" Text="Address Line 2"></asp:Label></td>
            <td><asp:TextBox ID="Address2Text" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td><asp:Label ID="Address3Label" runat="server" Text="Address Line 3"></asp:Label></td>
            <td><asp:TextBox ID="Address3Text" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td><asp:Label ID="CityLabel" runat="server" Text="City"></asp:Label></td>
            <td><asp:TextBox ID="CityText" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td><asp:Label ID="StateLabel" runat="server" Text="State"></asp:Label></td>
            <td><asp:TextBox ID="StateText" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td><asp:Label ID="PostCodeLabel" runat="server" Text="Post Code"></asp:Label></td>
            <td><asp:TextBox ID="PostCodeText" runat="server"></asp:TextBox></td>
            <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ControlToValidate="PostCodeText" ErrorMessage="Post Code Must be Numeric" 
                    ValidationExpression="^(0|[0-9][0-9]*)$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="CountryLabel" runat="server" Text="Country"></asp:Label></td>
            <td><asp:DropDownList ID="ListOfCountry" runat="server">
        </asp:DropDownList></td>
        </tr>
        <tr>
            <td><asp:Label ID="PhoneLabel" runat="server" Text="Phone Number"></asp:Label></td>
            <td><asp:TextBox ID="PhoneText" runat="server" BackColor="#CC99FF"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ErrorMessage="Phone Number Must be Entered" ControlToValidate="PhoneText">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ErrorMessage="Phone Number Must be Numeric" 
                    ValidationExpression="^(0|[0-9][0-9]*)$" ControlToValidate="PhoneText">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="FaxLabel" runat="server" Text="Fax Number"></asp:Label></td>
            <td><asp:TextBox ID="FaxText" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td><asp:Label ID="EmailLabel" runat="server" Text="Email"></asp:Label></td>
            <td><asp:TextBox ID="EmailText" runat="server"></asp:TextBox></td>
            <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ErrorMessage="Invalid Email Format" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    ControlToValidate="EmailText">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="WebsiteLabel" runat="server" Text="Website"></asp:Label></td>
            <td><asp:TextBox ID="WebsiteText" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td></td>
            <td><asp:Button ID="AddButton" runat="server" Text="Add" 
                    onclick="AddButton_Click" /></td>
        </tr>
   </table>
    </div>  
    </form>
</body>
</html>
